from rest_framework.routers import SimpleRouter
from user import views


# 创建一个路由管理对象
# trailing_slash是否要在生成的路由尾部添加/
router = SimpleRouter(trailing_slash=False)
router.register('user', views.UserViewSet, basename='user')

